<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<style>
	.panel{
		margin-top : 10px;
	}
	
	.btn{
		padding : 0;
	}
</style>

<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading">Services</div>

  <!-- Table -->
  <table class="table">
  
    <tr>
      <td>#</td>
      <td>Username</td>
      <td>First name</td>
      <td>Last name</td>
    </tr>
    
    <c:set var="count" value="0" scope="page" />
    
    <c:forEach var="subscriber" items="${subscribers}">
      <c:set var="count" value="${count + 1}" scope="page" />
      
      <tr>
      	<td>${count}</td>
      	<td><a class="btn" href="<c:url value="/administrator/subscribers/${subscriber.id}" />">${subscriber.username}</a></td>
      	<td>${subscriber.firstname}</td>
      	<td>${subscriber.lastname}</td>
      	
      </tr>
      
    </c:forEach>   
  </table>
</div>